# -*- Makefile -*-
#
#This file takes two macros that need to be defined
# ccmode  which provides the compiler flag for 32 or 64 bit compile
# tprolib which specifies the full path to the tpro library.
#

!include makefile.inc

EXE=$(APP).exe
SRC=..\..\..\upgrade\$(APP).c
OBJ=$(APP).obj

CFLAGS=/I ..\lib /I . /I ..\..\..\common\tsync\h /I ..\inc /D WIN32 /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MD /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt


$(EXE): $(OBJ)
	link $(OBJ) /OUT:$(EXE) /LIBPATH:..\lib\lib /LIBPATH:..\..\lib\lib /MANIFEST /SUBSYSTEM:CONSOLE /MACHINE:X86 tsync.lib kernel32.lib user32.lib
	$(_VC_MANIFEST_EMBED_EXE)


$(OBJ):
	cl $(SRC) $(CFLAGS)

!include makefile.targ.inc